﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kalficom.Libraies
{
    class msg
    {

        // Global message
        internal string permissionMsg = (new string[] { "Function not allowed!\n\nPlease contact your administrator to access to cette function", "Fonction non autorisée!\n\nVeuillez consulter votre administrateur pour accéder à cette fonction." })[Language()];
        internal string captionMsg = (new string[] { "Kalicom", "Kalicom : Gesion des contrats et des tournées" })[Language()];
        internal string saveMsg = (new string[] {"Do you want to save?","Sauvegarde des données?"})[Language()];
        internal string deleteMsg = (new string[] {"Do you want to delete?","Etes-sûr de supprimer?"})[Language()];
        internal string exitMsg = (new string[] {"Do you want to exit?","Etes-vous sûr de quitter?"})[Language()];
        internal string exitSaveMsg = (new string[] { "Do you want to exit without save?", "Etes vous sûr de sortir sans sauvegarder" })[Language()];
        internal string logFail = (new string[] {"Login or Password is not correct.", @"Nom d'utilisateur ou mot de passe n'est pas correct."})[Language()];
        internal string ctlComboText = (new string[] { "{0} code doesn't exist.", "{0} code inexistant" })[Language()];
        internal string textValidatedDate = (new string[] { "Invalide date value.", "Date n'est pas valide." })[Language()];

        // User message
        internal string user_identificationBlankMsg = (new string[] { "Identifiation can not be blank.", "L'identitication ne peut pas être vide" })[Language()];
        internal string user_identificationExistMsg = (new string[] { "Identifiation already exist.", "L'identification est déjà existée" })[Language()];
        internal string user_passwordBlankMsg = (new string[] { "Password can not be blank.", "Le mot de passe ne peut pas être vide" })[Language()];
        internal string user_passwordConfirmMsg = (new string[] { "Password is not match with confirm password.", "La confirmation de mot de passe n'est pas valide" })[Language()];

        // Zone message
        internal string zone_codeBlankMsg = (new string[] { "Zone code can not be blank.", "Le code ne peut pas être vide" })[Language()];
        internal string zone_codeExistMsg = (new string[] { "Zone code already exist.", "Le code est déjà existé" })[Language()];
        internal string zone_inUsed = (new string[] { "Deletion impossible!\n\nThis geographic zone is used by an active contract", "Suppression impossible !\n\nCette zone géographique est utilisée par un contrat actif" })[Language()];

        // Contract message
        internal string cont_codeBlankMsg = (new string[] { "Contract number can not be blank.", "Le numéro de contrat ne peut pas être vide" })[Language()];
        internal string cont_codeExistMsg = (new string[] { "Contract number already exist.", "Le numéro de contrat est déjà existé" })[Language()];
        internal string cont_clientBlankMsg = (new string[] { "Client can not be blank.", "Le client ne peut pas être vide" })[Language()];
        internal string cont_takenProductExistMsg = (new string[] { "The taken product is already exist.", "Le produit prélevé est déjà existé" })[Language()];
        internal string cont_takenCopyCreateModify = (new string[] { "Client must be saved before create or modify taken.", "Le client doit être souvergardé avant de créer ou modifier" })[Language()];
        internal string cont_takenClientExitMsg = (new string[] { "The copy taken will be lose, do you want to exit?.", "The duplication will be lost, do want to exit?" })[Language()];
        internal string cont_takenFirstDate = (new string[] { "Date first taken must be greater or equal to date start contract.","Date de prélèvement antérieure au début de contrat."})[Language()];
        internal string cont_takenNextDate = (new string[] { "Date next taken must be greater or equal to date start taken.", "Date prochain prélèvement antérieure au début de premier prélèvement." })[Language()];
        internal string cont_takenNextDateBlank = (new string[] { "Date next taken can not be blank.", "Le date prochain prélèvement ne peut pas être vide." })[Language()];
        internal string cont_takenDay = (new string[] { "Please select at least one day.", "Vous devez sélectionner au moin un jour." })[Language()];
        internal string cont_takenMonth = (new string[] { "Please select at least one month.", "Vous devez sélectionner au moin un mois." })[Language()];
        internal string cont_takenYear = (new string[] { "Please select al least one week.", "Vous devez sélectionner au moin une semaine." })[Language()];

        static sbyte Language()
        {
            switch (System.Threading.Thread.CurrentThread.CurrentUICulture.Name)
            {
                case "fr-FR": return 1;
                default: return 0;
            }
        }
    }
}
